<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Editare prezentare</title>

<link type="text/css" rel="stylesheet" href="css/prez.css?v=8">

<script type="text/javascript" src="js/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="js/constants.js"></script>
<script type="text/javascript" src="js/slideManagement.js"></script>
<script type="text/javascript" src="js/presentationManagement.js"></script>
<script type="text/javascript">	
		$(document).ready(main);		
		function main() {
			var presentationManager = new PresentationManager();
			var presentationData = JSON && JSON.parse('<%=request.getAttribute("presentationData") %>') || $.parseJSON(presentationManager);
			if(typeof presentationData =='object' && presentationData != null && presentationData != "null") {
				presentationManager.preload(presentationData);
			}
		};
</script>

</head>
<body>
<div id='loadingDiv' style="position:fixed; height:100%; width:100%; overflow:hidden; top:0; left:0;color:white;text-align: center;font-size: 5em;background-color: black; opacity:0.92; filter:alpha(opacity=92);display:none;z-index: 99;">
	<br>
	<br>
	<br>
	<br>
	<br>
	<span>Se salveaza...</span>
</div>
<center>
		<input id="_id" type="hidden" value="">
		<span id="saveSpan" class="saveSpan">
			<input id="saveButton" type="button" value="Salveaza" class="saveButton">
			<br>
			<span class="saveMessageSpan">
				Exista modificari ce<br>nu au fost salvate.<br><br>Apasa pe "Salveaza"<br>pentru a pastra ultimele modificari
			</span>
		</span>
		<span id="backToListSpan" class="backToListSpan">
			<a href="/presentationsList.htm">Lista de prezentari</a>
		</span>
		<input id="previewButton" type="button" value="Ce vor vedea destinatarii" class="controlButton" style="width:290px;">
		<input disabled="disabled"  id="emailButton" type="button" value=" " class="controlButton" style="width:290px;">
		<br>
		<br>
		<br>
		<textarea id="prezTitle" rows="2" cols="60" class="textAreaTitle"></textarea>
		<br>
		<br>
		<br>
		<br>
		<br>
			
		<% for(int i=0; i<50; i++) { %>	
		<div class="imgTextDiv">
			<br>
			<br>
			<br>
			<input type='button' id="inputFileFake<%=i%>" value="Adauga poza si text asociat" class="controlButton"/>			
			<span style="display: none; ">
				<form id="fileForm<%=i%>" runat="server">
				    <input type='file' id="inputFile<%=i%>"/>		    
				</form>	
			</span>				
			<span id="imgSpan<%=i%>" style="display: none;">
				<input id="imgRemoveButton<%=i%>" type="button" value="Sterge poza si text" class="imgRemoveButton">
				<br>
				<br>
				<br>
				<!-- Bug: when picture is resized, picture content is lost on Save
				<input id="imgShrinkButton<%=i%>" type="button" value="-" class="controlButtonSquare" title="micsoreaza poza">
				<input id="imgGrowButton<%=i%>" type="button" value="+" class="controlButtonSquare" title="mareste poza">
				<br>
				-->
				<span id="imgParentSpan">
					<img id="img<%=i%>" src="#" />
				</span>				
			</span>		
			<br>
			<br>
			<span id="textSpan<%=i%>" style="display: none;">
				<textarea id="textInput<%=i%>" rows="5" cols="40" class="textAreaDescription"></textarea>	
			</span>		
		</div>
		<% } %>	
	</center>

</body>
</html>